package com.design.movieticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.design.movieticket.common.base.BaseEntity;
import com.design.movieticket.common.base.BaseTreeEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@AllArgsConstructor
@NoArgsConstructor
@Data
@SuperBuilder(toBuilder = true)
@TableName("permission")
public class Permission extends BaseTreeEntity<Permission> {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    Long id;//权限id

    String type;//权限类型

    String permissionName;//权限名称

    String value;//权限值

    Long pid;//父级id

    String pids;//父级ids

}
